package com.koron.bean.system.staff;

import java.util.HashMap;
import java.util.Map;

public class Constant {
    /**
     * 登录用户在里的储存token
     */

    public static final String JWT_TOKEN = "jwt_token";

    public static final String USERNAME = "user_name";

    public static final String ACCOUNT = "account";

    public static final String DYNAMIC_DATA_SOURCE = "DYNAMIC_DATA_SOURCE";//动态数据源

    public static final String DYNAMIC_AGENT_ORG = "DYNAMIC_AGENT_ORG";//普通及代理模式下的原登录人的当前组织

    public static final String DYNAMIC_LEADER = "DYNAMIC_LEADER";//代理模式下的领导账号

    public static final String DYNAMIC_LEADER_ORG = "DYNAMIC_LEADER_ORG";//代理模式下的领导的当前组织

    public static final String LANGUAGE = "LANGUAGE";//当前语种

    public static final String MOBILE = "MOBILE";//移动端

    public static final String OUT_ORG = "OUT_ORG";

    public static final String TICKET_APPID = "inwlms";

    public static final String EAM_SERVICE_AUTH = "eam_service_auth";

    public static final String EAM_SERVICE_AUTH_AGENT = "eam_service_auth_agent";

    public static final String EAM_SERVICE_AUTH_VERIFYCODE = "eam_service_auth_verifyCode";

    public static final String EAM_SERVICE_SYSTEM_LOGIN_VERIFYCODE = "eam_service_system_login_VerifyCode";

    public static final String EAM_TOKEN = "eam_token";

    public static final String EAM_LOG = "eam_log";

    public static final class StaffingWay {
        //值班长+值班员
        public static final String MONITOR_OFFICER = "monitor_officer";
        //值班员
        public static final String ATTENDANT = "attendant";
        //值守
        public static final String UNATTENDED = "unattended";
        //指定
        public static final String APPOINT = "appoint";

        public static Map<String, String> map = new HashMap<>();

        static {
            // 值班长+值班员 => 0
            map.put(MONITOR_OFFICER, "0");
            // 值守 => 1
            map.put(UNATTENDED, "1");
            // 值班员 => 2
            map.put(ATTENDANT, "2");
        }
    }

    public static final class CasType {
        //竹云
        public static final String IAM = "iam";
        //uma
        public static final String UMA = "uma";
        public static final String ZSJ = "zsj";
    }

}
